package com.sluggard.workflow.entity.res;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 类描述：
 *
 * @author lizheng
 * @created 2025/4/15 17:21
 */
@Data
@Schema(description = "流程实例响应体")
public class ProcessInstanceResponse {

    @Schema(description = "流程实例ID")
    private String id;

    @Schema(description = "流程定义")
    private ProcessDefinitionResponse processDefinition;

    @Schema(description = "业务KEY")
    private String businessKey;

    @Schema(description = "活动实例id")
    private String activityId;

    @Schema(description = "流程状态")
    private Integer suspensionState;

    @Schema(description = "流程变量")
    private Map<String,Object> variableMap = new HashMap<>();
}
